/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jogopoo.Interface;

import Engine.Fisica.Clip;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.JPanel;

/**
 *Classe do painel da janela menu
 * @author i
 */
public class MenuPanel extends JPanel{

    public MenuPanel(){
            sprite = new Image[1];
            URL url = Clip.class.getResource("/imagens/spaceInvaders.jpg");
            sprite[0] = Toolkit.getDefaultToolkit().getImage(url);
            
    }

     @Override
     protected void paintComponent(Graphics cena) {
     cena.drawImage(sprite[0], 0, 0, this);
    }

private Image[] sprite;
}
